<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
include "conn.php";
//echo json_encode($_POST["delete"]);
$id = implode(",", $_POST["delete"]);
$delete = mysqli_query($conn, "delete from shop where id in (" . $id . ")");
if ($delete) {
	echo "<script>alert('删除成功!');window.location.href='index.php'</script>";
} else {
	echo "<script>alert('删除失败!');window.location.href='index.php'</script>";
}
?>
</body>
</html>